<HTML>
<HEAD>
<meta charset="UTF-8">
<title>BankAccount.<init> - stripe</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">stripe</a>&nbsp;/&nbsp;<a href="../index.html">com.stripe.android.model</a>&nbsp;/&nbsp;<a href="index.html">BankAccount</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
<br/>
<h1>&lt;init&gt;</h1>
<a name="com.stripe.android.model.BankAccount$&lt;init&gt;(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)"></a>
<code><span class="identifier">BankAccount</span><span class="symbol">(</span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/accountNumber">accountNumber</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/countryCode">countryCode</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/currency">currency</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/routingNumber">routingNumber</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/accountHolderName">accountHolderName</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/accountHolderType">accountHolderType</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span></code>
<p><a href="https://stripe.com/docs/api/tokens/create_bank_account">Create a bank account token</a></p>
<h3>Parameters</h3>
<p><a name="accountNumber"></a>
<code>accountNumber</code> - The account number for the bank account, in string form.
Must be a checking account.</p>
<p><a name="countryCode"></a>
<code>countryCode</code> - The country in which the bank account is located.</p>
<p><a name="currency"></a>
<code>currency</code> - The currency the bank account is in. This must be a country/currency pairing
that Stripe supports.</p>
<p><a name="routingNumber"></a>
<code>routingNumber</code> - Optional. The routing number, sort code, or other country-appropriate
institution number for the bank account. For US bank accounts, this is required and should
be the ACH routing number, not the wire routing number. If you are providing an IBAN for
<code>account_number</code>, this field is not required.</p>
<p><a name="accountHolderName"></a>
<code>accountHolderName</code> - Optional. The name of the person or business that owns the bank
account. This field is required when attaching the bank account to a <code>Customer</code> object.</p>
<p><a name="accountHolderType"></a>
<code>accountHolderType</code> - Optional. The type of entity that holds the account. This can be
either <code>individual</code> or <code>company</code>. This field is required when attaching the bank account to
a <code>Customer</code> object.</p>
<a name="com.stripe.android.model.BankAccount$&lt;init&gt;(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)"></a>
<code><span class="identifier">BankAccount</span><span class="symbol">(</span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/accountHolderName">accountHolderName</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/accountHolderType">accountHolderType</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/bankName">bankName</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/countryCode">countryCode</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/currency">currency</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/fingerprint">fingerprint</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/last4">last4</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.stripe.android.model.BankAccount$<init>(kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String, kotlin.String)/routingNumber">routingNumber</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span><span class="symbol">)</span></code>
<p>Constructor with no account number used internally to initialize an object
from JSON returned from the server.</p>
<h3>Parameters</h3>
<p><a name="accountHolderName"></a>
<code>accountHolderName</code> - the account holder's name</p>
<p><a name="accountHolderType"></a>
<code>accountHolderType</code> - the <a href="-bank-account-type/index.html">BankAccountType</a></p>
<p><a name="bankName"></a>
<code>bankName</code> - the name of the bank</p>
<p><a name="countryCode"></a>
<code>countryCode</code> - the two-letter country code of the country in which the account was opened</p>
<p><a name="currency"></a>
<code>currency</code> - the three-letter currency code</p>
<p><a name="fingerprint"></a>
<code>fingerprint</code> - the account fingerprint</p>
<p><a name="last4"></a>
<code>last4</code> - the last four digits of the account number</p>
<p><a name="routingNumber"></a>
<code>routingNumber</code> - the routing number of the bank</p>
</BODY>
</HTML>
